package sundun.sharding.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import sundun.sharding.config.TableConfiguration;

import java.util.HashMap;
import java.util.Map;

/**
 * 分片表配置
 * @author: zxl
 * @date: 2024/8/15 21:25
 */
@ConfigurationProperties(prefix = "sharding.adapter.tables")
public class TableConfigurationProperties {

    private Map<String, TableConfiguration> rule = new HashMap<>();

    public Map<String, TableConfiguration> getRule() {
        return rule;
    }

    public void setRule(Map<String, TableConfiguration> rule) {
        this.rule = rule;
    }
}
